import service from '@/utils/request.js'
// 用户  （分装）
export const loginApi = (username, password) => {
  return service.post('/auth/login', {
    username,
    password
  })
}

// 需要携带token, 获取用户的信息
export const profile = () => {
  return service.get('/users/profile')
}

// 退出登录
export const loginOutApi = () => {
  return service.post('/auth/logout')
}
